<style>
    .upload-image {
        background: url('__CDN__/assets/addons/example/img/plus.png') no-repeat center center;
        background-size: 30px 30px;
        height: 30px;
        width: 30px;
        border: 1px solid #ccc;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-name" class="form-control" name="row[name]" type="text">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-cate_id" data-rule="required" data-source="cate/index" class="form-control selectpage" name="row[cate_id]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->


<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">-->
<!--                <select name="row[id]" id="c-id" class="selectpicker selectpage" data-source="category/selectpage" data-page-size="5">-->
<!--                    {foreach name="goods" item="vo"}-->
<!--                        <option value="{$vo.id}">{$vo.name}</option>-->
<!--                    {/foreach}-->
<!--                </select>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->


    <!--<div class="form-group">-->
    <!--    <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>-->
    <!--    <div class="col-xs-12 col-sm-8">-->
    <!--        <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">-->
    <!--            <input id="c-id" data-rule="required" data-source="category/goodsPage" class="form-control selectpage" name="row[id]" type="text" data-field="name" data-primary-key="name">-->
    <!--        </div>-->
    <!--    </div>-->
    <!--</div>-->


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id" data-rule="required" data-source="goods/goods/index" data-field="name" class="form-control selectpage" name="row[id]" type="text" value="" data-primary-key="id">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-image" class="form-control" size="50" name="row[image]" type="text">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-image"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-image"></ul>-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-num" class="form-control" name="row[num]" type="number">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input type="text" class="form-control datetimerange" name="row[time]" placeholder="指定日期" data-date-use-current="true"/>-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[time]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="">
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <select name="row[start_time]" id="c-start_time" class="selectpicker">-->
<!--                <option value="1">10点,2小时</option>-->
<!--                <option value="2">14点,2小时</option>-->
<!--            </select>-->
<!--&lt;!&ndash;            <input type="text" class="form-control datetimerange" name="row[time]" placeholder="指定日期" data-date-use-current="true"/>&ndash;&gt;-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Single_time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-single_time" class="form-control" name="row[single_time]" type="number">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Total_purchase')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-total_purchase" class="form-control" name="row[total_purchase]" type="number">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Activity')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[activity]', ['1'=>__('Yes'), '0'=>__('No')])}
        </div>
    </div>

<!--    <div class="row">-->
<!--        <div class="col-md-6">-->
<!--            <div class="box box-info">-->
<!--                <div class="panel-body">-->
<!--                    <div class="form-group row">-->
<!--                            <div class="col-xs-12">-->
<!--                                <table class="table fieldlist" data-template="basictpl" data-name="row[basic]" id="first-table">-->
<!--                                    <tr>-->
<!--                                        <td>{:__('规格')}</td>-->
<!--                                        <td>{:__('金额')}</td>-->
<!--                                        <td width="100"></td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>-->
<!--                                    </tr>-->
<!--                                </table>-->

<!--                                &lt;!&ndash;请注意实际开发中textarea应该添加个hidden进行隐藏&ndash;&gt;-->
<!--                                <textarea name="row[basic]" class="form-control" cols="30" rows="5" style="display:none"> </textarea>-->

<!--                                <script id="basictpl" type="text/html">-->
<!--                                    <tr class="form-inline">-->
<!--                                        <td><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" size="15" value="<%=row.title%>" placeholder="例如：葵花籽油3.9L"/></td>-->
<!--                                        <td><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" size="15" value="<%=row.intro%>" placeholder="例如：65"/></td>-->
<!--                                        <td>-->
<!--                                            &lt;!&ndash;下面的两个按钮务必保留&ndash;&gt;-->
<!--                                            <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>-->
<!--                                            <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                </script>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->






    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
